const { dialog, ipcMain } = require('electron')

ipcMain.handle('on-alert-event', (e, msg,type) => {
    dialog.showMessageBox({
        message: msg,
        type: type
    })
})